<?php
echo "请输入两个整数，用英文逗号分隔：\n";
echo "请输入两个整数的加减乘除的结果\n";
$count=fscanf(STDIN, '%f ,%f,%s', $a, $b,$other);
var_dump($count,$a,$b,$other);
if($count>2){echo "输入的数据不要有乱七八糟的东西！\n";}
else if ($count == 2){
    $he=$a + $b;
    $cha=$a-$b;
    $ji=$a*$b;
    $chu=$a/$b;
    echo "$a + $b=$he\n";
    echo "$a - $b=$cha\n";
    echo "$a * $b=$ji\n";
    echo "$a / $b=$chu\n";
}else{
    echo "数据输入错误，请按照正确的格式输入！\n";
};